home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD ROM Paradise Collection 4
/
CD ROM Paradise Collection 4 1995 Nov.iso
/
os2
/
zoc205.zip
/
INSTALL.FIL
/
SCRIPT
/
RXSAMPLE
/
MISC
/
2_IFELSE
< prev
next >
Wrap
Text File
|
1994-08-13
|
602b
|
29 lines
/* REXX */
/* THIS SCRIPT SHOWS HOW DECISIONS WORK IN REXX */
CLS
/* show a nice request window to the user */
REQUEST '"Do you like ZOC?"' YES NO
ANSWER=ZOCRESULT()
/* here comes a decision with one alternative */
IF ANSWER="##CANCEL##" THEN SIGNAL END /* jump to the end */
/* here comes a decision with two alternatives */
IF ANSWER="YES" THEN
DO
WRITELN Nice to hear that!
END
ELSE /* ANSWER=NO */
DO
WRITELN "Oops, are you really sure about that?"
WRITELN "(maybe you mixed it up with Windows NT)"
END
END: /* target for the SIGNAL command above */